package app

import (
	middleware2 "blog/app/middleware"
	"github.com/gin-gonic/gin"
)

type middleware struct {
}

var Middleware = new(middleware)

func (rev *middleware) Init() []gin.HandlerFunc {
	var middleware []gin.HandlerFunc
	middleware = append(middleware, middleware2.Cors(), gin.Logger(), gin.Recovery())
	return middleware
}
